package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 医院信息<br>
 * @author yangh
 */
@Entity
@Table(name = "hospital")
public class Hospital extends TXBYObject {
    private String name;                 // 医院名称
    private String descr;                // 医院描述信息
    private String alias;                // 别名，一般使用医院域名中的标识符
    private Integer city;                // 医院所在城市区号
    private Integer type;                // 医院类型，标识是医院或科室
    private Integer parent;              // 科室等所在医院的id
    @Column(name = "dept_id")@JSONField(name = "dept_id")
    private Integer deptId;              // 科室版医院关联的科室介绍的id
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }
}